package com.erp.warehouse.clouderp_warehouse.service.impl.inventory;

import com.erp.warehouse.clouderp_warehouse.mapper.inventory.InventoryOrdinaryMapper;
import com.erp.warehouse.clouderp_warehouse.pojo.inbound.InboundOrderItem;
import com.erp.warehouse.clouderp_warehouse.service.inventory.InventoryOrdinaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 2025/11/6 8:58
 * author: 向远洋
 */
@Service
@Transactional
public class InventoryOrdinaryServiceImpl implements InventoryOrdinaryService {
    @Autowired
    InventoryOrdinaryMapper ordinaryMapper;
    @Override
    public int addOrdinaryStock(InboundOrderItem inboundOrderItem, String companyId) {
        return ordinaryMapper.insert(inboundOrderItem, companyId);
    }
}
